<link rel="stylesheet" href="/style/jmdf.css" media="all">
<#setting number_format="#.##">
<table border="2" style="width: 98%;border-color: white;text-align: center;color: white;font-size: 24px;height: 880px;">
    <thead>
    <tr>
        <th rowspan="2" width="18%">小区名称</th>
        <th rowspan="2" width="13%">幢号</th>
        <th rowspan="2" width="18%">户型</th>
        <th colspan="2" width="25%">总数</th>
        <th colspan="2" class="jmdf-color-red" width="25%">已选</th>
        <#--<th colspan="2" class="jmdf-color-green">剩余</th>-->
    </tr>
    <tr>
        <th width="10%">套数</th>
        <th width="15%">面积</th>
        <th class="jmdf-color-red" width="10%">套数</th>
        <th class="jmdf-color-red" width="15%">面积</th>
        <#--<th class="jmdf-color-green">套数</th>-->
        <#--<th class="jmdf-color-green">面积</th>-->
    </tr>
    </thead>
    <tbody>
    <#if (houseHoldDataMap??)>
        <#assign allHouseTotal= 0/>
        <#assign allHouseAreaTotal= 0/>
        <#assign allChooseHouseTotal= 0/>
        <#assign allChooseHouseAreaTotal= 0/>
        <#--<#assign allUnChooseHouseTotal= 0/>-->
        <#--<#assign allUnChooseHouseAreaTotal= 0/>-->
    <#list houseHoldDataMap?keys as azProjectId>
        <#assign azProject=azProjectMap[azProjectId]/>
        <#assign itemMap=houseHoldDataMap[azProjectId]/>
        <#if (itemMap??)>
            <#assign itemMapLen=itemMap?size/>
            <#list itemMap?keys as buildNum>
                <#assign itemItemMap=itemMap[buildNum]/>
                <#if (itemItemMap??)>
                    <#assign itemItemMapLen=itemItemMap?size/>
                <#list itemItemMap?keys as houseHold>
                    <#assign dataMap=itemItemMap[houseHold]/>
                    <#assign allHouseTotal= allHouseTotal+dataMap["houseTotal"]/>
                    <#assign allHouseAreaTotal= allHouseAreaTotal+dataMap["houseAreaTotal"]/>
                    <#assign allChooseHouseTotal= allChooseHouseTotal+dataMap["chooseHouseTotal"]/>
                    <#assign allChooseHouseAreaTotal= allChooseHouseAreaTotal+dataMap["chooseHouseAreaTotal"]/>
                    <#--<#assign allUnChooseHouseTotal= allUnChooseHouseTotal+dataMap["unChooseHouseTotal"]/>-->
                    <#--<#assign allUnChooseHouseAreaTotal= allUnChooseHouseAreaTotal+dataMap["unChooseHouseAreaTotal"]/>-->
                <tr>
                    <td>${(azProject.projectName)!}</td>
                    <td>${buildNum}幢</td>
                    <td>${houseHoldMap[houseHold]}</td>
                    <td>${dataMap["houseTotal"]}</td>
                    <td>${dataMap["houseAreaTotal"]}</td>
                    <td class="jmdf-color-red">${dataMap["chooseHouseTotal"]}</td>
                    <td class="jmdf-color-red">${dataMap["chooseHouseAreaTotal"]}</td>
                    <#--<td class="jmdf-color-green">${dataMap["unChooseHouseTotal"]}</td>-->
                    <#--<td class="jmdf-color-green">${dataMap["unChooseHouseAreaTotal"]}</td>-->
                </tr>
                </#list>
                </#if>
            </#list>
        </#if>
    </#list>
    <tr>
        <td colspan="3">合计</td>
        <td>${allHouseTotal}</td>
        <td>${allHouseAreaTotal}</td>
        <td class="jmdf-color-red">${allChooseHouseTotal}</td>
        <td class="jmdf-color-red">${allChooseHouseAreaTotal}</td>
        <#--<td class="jmdf-color-green">${allUnChooseHouseTotal}</td>-->
        <#--<td class="jmdf-color-green">${allUnChooseHouseAreaTotal}</td>-->
    </tr>
    </#if>
    </tbody>
</table>